package com.pug.user.mapper;

import com.pug.user.po.UserPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

/**
 * @author RenGaoshuai
 * @date 2023/6/25 10:18
 * @description
 */
@Mapper
@Repository
public interface UserMapper {

    UserPO queryUser(UserPO queryPO);

    UserPO queryByUserCode(@Param("userCode") String userCode);

    int updateUser(UserPO queryPO);

    int updateAmount(@Param("userCode") String userCode, @Param("amount") BigDecimal amount);
}
